﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="OrderDetailTerminal.ascx.cs" Inherits="Runda.EShop.Web.UserControl.OrderDetailTerminal" %>
<%@ Register assembly="Runda.EShop.Common.Component" namespace="Runda.EShop.Common.Component" tagprefix="cc1" %>
<div class="huang_box" style="width: 400px; line-height: 20px">
    <img src="/images/ico/ani_light.gif" align="absmiddle" /><span>以下批次的库存仅供参考，最终发货以实际库存为准。</span>
</div>
<asp:Repeater ID="rptProdBatch" runat="server">
    <HeaderTemplate>
        <table width="100%">
            <tr style="background-color: #F2F2F2">
                <td style="width:80px">批次号</td>
                <td style="width:80px">效期</td>
                <td style="width:40px">库存</td>
                <td style="width:40px">数量</td>
                <td style="width:150px">备注</td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <asp:Literal ID="ltlBatchCode" runat="server" Text='<%# Eval("BatchCode")%>'></asp:Literal>
            </td>
            <td>
                <asp:Literal ID="ltlDueDate" runat="server" Text='<%# Eval("DueDate")%>'></asp:Literal>
            </td>
            <td>
                <%# string.Format("{0:N}",Eval("quantity"))%>
            </td>
            <td>
                <asp:TextBox ID="txtInventory" runat="server" Text='<%# Eval("quantity")%>' Style="display: none;"></asp:TextBox>
                <cc1:decimaltextbox id="txtQty" runat="server" width="40px"></cc1:decimaltextbox>
                <%--
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtInventory" ControlToCompare="txtQty" Operator="GreaterThanEqual" Type="Double" 
            ForeColor="Red" ValidationGroup="group1" ErrorMessage="不能超出库存数量" Enabled="false"></asp:CompareValidator>--%>
            </td>
            <td>
                <asp:TextBox ID="txtRemark" runat="server" MaxLength="100" Width="145px"></asp:TextBox>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>
